home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / tex / lametex_.z / lametex_ / lametex / src / LameTeX.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-07  |  889 b   |  33 lines

  1. /* LameTeX.C
  2.  *
  3.  * A LaTeX compatible text formatter that can handle arbitrary-shaped margins
  4.  * described in PostScript.
  5.  *
  6.  * Copyright 1992 Jonathan Monsarrat. Permission given to freely distribute,
  7.  * edit and use as long as this copyright statement remains intact.
  8.  *
  9.  * PreVersion 1.0 begun 7/28/92
  10.  * Version 1.0 8/31/92 -- major LaTeX features, stealth commands, fonts
  11.  * Version 1.1 9/7/92 -- added \ref and ASCII formatting
  12.  */
  13.  
  14. #include "Global.h"
  15.  
  16. FileInput *Global::files;
  17. Stack *Global::stack;
  18. Labels *Global::labels;
  19.  
  20. /* The main entry point to LameTeX. */
  21. main(int argc, char *argv[])
  22. {
  23.    cerr << "This is LameTeX, C++ Version 1.1" << endl;
  24.    Global::files = new FileInput(argc,argv);
  25.    Global::stack = new Stack();
  26.    Global::labels = new Labels();
  27.  
  28.    for(Token token = Token(); token.isvalid(); token = Token())
  29.       token.handle();
  30.  
  31.    Global::stack->shutdown();
  32. }
  33.